inspector: Don't listen for notify twice
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 04:44:07 +0000 (04:44 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 May 2019 04:44:07 +0000 (04:44 +0000)
The property list now uses property editors
for the value, which listen for updates by
themselves, so no need for the list to do it.

gtk/inspector/prop-list.c

index ca84609062297bf608cacd6c66b23f14237e3fc8..3f36b2b0e77b3de6348e309626cba641724eab26 100644 (file)
@@ -574,21 +574,6 @@ gtk_inspector_prop_list_create_row (GtkInspectorPropList *pl,
   return row;
 }
 
-static void
-gtk_inspector_prop_list_prop_changed_cb (GObject              *pspec,
-                                         GParamSpec           *prop,
-                                         GtkInspectorPropList *pl)
-{
-  if (!pl->priv->object)
-    return;
-
-#if 0
-  iter = g_hash_table_lookup (pl->priv->prop_iters, prop->name);
-  if (iter != NULL)
-    gtk_inspector_prop_list_update_prop (pl, iter, prop);
-#endif
-}
-
 static void
 cleanup_object (GtkInspectorPropList *pl)
 {
@@ -644,11 +629,6 @@ gtk_inspector_prop_list_set_object (GtkInspectorPropList *pl,
   if (GTK_IS_WIDGET (object))
     g_signal_connect_object (object, "destroy", G_CALLBACK (cleanup_object), pl, G_CONNECT_SWAPPED);
 
-  /* Listen for updates */
-  pl->priv->notify_handler_id =
-      g_signal_connect_object (object, "notify",
-                               G_CALLBACK (gtk_inspector_prop_list_prop_changed_cb), pl, 0);
-
   gtk_widget_show (GTK_WIDGET (pl));
 
   return TRUE;